package com.lys.vod;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.vod.model.v20170321.GetPlayInfoRequest;
import com.aliyuncs.vod.model.v20170321.GetPlayInfoResponse;
import com.aliyuncs.vod.model.v20170321.GetVideoPlayAuthRequest;
import com.aliyuncs.vod.model.v20170321.GetVideoPlayAuthResponse;


import java.util.List;

/**
 * @author Lyyyys
 * @version 1.0
 * @date 2021/5/9 19:53
 */

public class testVod {
    public static void main(String[] args) throws Exception {
        DefaultAcsClient client = InitObject.initVodClient("LTAI5tPJtTcSQcV5kAaBA2AN", "9rmGQFcmLEesW6Gd7Xngd0TGk7yfUL");
        GetVideoPlayAuthRequest request = new GetVideoPlayAuthRequest();
        GetVideoPlayAuthResponse response = new GetVideoPlayAuthResponse();

        request.setVideoId("34af97cb4d9f48f3b2c7db436115019f");
        response = client.getAcsResponse(request);

        System.out.printf("playAuth" + response.getPlayAuth());
    }


}
